package com.redBook.mapper;

import com.redBook.entity.NoteDetail;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface NoteDetailMapper {
    @Select("select * from note_detail where note_id = #{noteId}")
    NoteDetail findByNoteId(Long noteId);

    @Insert("insert into note_detail (note_id,context,power) values (#{noteId},#{context},#{power})")
    void saveNote(Long noteId, String context, String power);
}
